package com.demo.servlet.demo1213.service.impl;

import com.demo.servlet.demo1213.entity.Person;
import com.demo.servlet.demo1213.service.PersonService;

import java.util.ArrayList;
import java.util.List;

public class PersonServiceImpl implements PersonService {
    @Override
    public List<Person> queryAll() {
        List<Person> people = new ArrayList<>();
        for (int i = 1; i < 20; i++) {
            people.add(new Person(i, "用户" + i, i, "男"));
        }
        return people;
    }
}
